I used to do this to get a program of an external class in c: ... push_text("Someclass"); SAFE_APPLY_MASTER("resolv", 1); if (((struct svalue *)(Pike_sp - 1))->type != PIKE_T_PROGRAM) { Pike_error("Could not resolv program Someclass.\n"); } prog = ((struct svalue *)(Pike_sp - 1))->u.program; ... However this does not work for me anymore when I try to resolv a Class that is defined inside the pmod that corresponds to the cmod (in my case in Public.Parser.JSON2 where Public.Parser.___JSON2 is the cmod). Any ideas how to do that? arne
problems resolving program in a cmod
Arne Goedeke @ Pike developers forum Tue, 20 Mar 2007 04:00:06 -0800
- problems re... Arne Goedeke @ Pike developers forum