@JernejL
I added this new routine that allows Lua function registration in freepascal:
Code:
procedure IJetLua.RegisterRoutine(aName: PChar; aData: Pointer; aCode: Pointer);
So far so good. I will have to do more testing. The IJetLua.RegisterRoutines methods (the ones that take TClass and TObject params) take advantage of Delphi's extended RTTI to scan and find the JetLua function signatures for auto registration. With the added routine above, it now should be possible to implement auto registration in freepascal. Scan for the routines and call the above routine to register them. Does freepascal have extended RTTI like Delphi?
Bookmarks