Routine names accessible during runtime?

If the DEBUG constant is defined during compilation, Inform 6 includes a printing rule called DebugAction (source) which, when given the number of the action can print its name.

Does anything similar exist to lookup the name of a routine?

I’m pretty sure the answer is no.

If you compile a game in debug mode or non-debug mode and then make a routine name a lot longer, the (unpadded) file length doesn’t change.

Though if you’re compiling to Glulx you could include the debug file as a blorb resource chunk and then search it. Not simple to do though.

1 Like