BTW: My problem (witch I forgot to mention) all lies in the calling of the imported methods. For example when I call:
it actually does the following:
lua_register(L, 'print', @lua_print);
Witch fails on the lua_pushstring method. This leads me to believe that one of two things is happening;
procedure lua_register(L: Plua_State; const n: PChar; f: lua_CFunction);
1) CDecl isn't working as I thought it would in FPC
2) Even though I have what appears to be a valid method address, it isn't.