BTW: My problem (witch I forgot to mention) all lies in the calling of the imported methods. For example when I call:
Code:
  lua_register(L, 'print', @lua_print);
it actually does the following:
Code:
procedure lua_register(L: Plua_State; const n: PChar; f: lua_CFunction);
begin
  lua_pushstring(L, n);
  lua_pushcfunction(L, f);
  lua_settable(L, LUA_GLOBALSINDEX);
end;
Witch fails on the lua_pushstring method. This leads me to believe that one of two things is happening;
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.