1278
1290
// Now add symbol to the Guile interpreter
1282
1294
/* Read-only variables become a simple procedure returning the
1283
1295
value; read-write variables become a simple procedure with
1286
1298
Printf(f_init, "scm_c_define_gsubr(\"%s\", 0, %d, 0, (swig_guile_proc) %s);\n",
1287
proc_name, Getattr(n, "feature:immutable") ? 0 : 1, var_name);
1299
proc_name, !GetFlag(n, "feature:immutable"), var_name);
1289
1301
Printf (f_init, "\t gh_new_procedure(\"%s\", (swig_guile_proc) %s, 0, %d, 0);\n",
1290
proc_name, var_name, Getattr(n,"feature:immutable") ? 0 : 1);
1302
proc_name, var_name, !GetFlag(n,"feature:immutable"));