hedgewars/LuaPas.pas
changeset 2922 34efcb0681d8
parent 2920 5cf48744a700
child 2924 908851e59958
equal deleted inserted replaced
2921:b7a636503298 2922:34efcb0681d8
    17   PPointer = ^Pointer;
    17   PPointer = ^Pointer;
    18 
    18 
    19   lua_State = record end;
    19   lua_State = record end;
    20   Plua_State = ^lua_State;
    20   Plua_State = ^lua_State;
    21 
    21 
    22 // only looking for "lua" might be dangerous but including version numbers
    22 const
    23 // unfortunately causes trouble on some linux/unix systems.
    23 {$IFDEF UNIX}
    24 const LuaLibName = 'lua';
    24   {$IFDEF DARWIN}
       
    25     LuaLibName = 'lua';
       
    26   {$ELSE}
       
    27     LuaLibName = 'lua5.1.so';
       
    28   {$ENDIF}
       
    29 {$ELSE}
       
    30   LuaLibName = 'lua.dll';
       
    31 {$ENDIF}
       
    32 
    25 
    33 
    26 (*****************************************************************************)
    34 (*****************************************************************************)
    27 (*                               luaconfig.h                                 *)
    35 (*                               luaconfig.h                                 *)
    28 (*****************************************************************************)
    36 (*****************************************************************************)
    29 
    37