hedgewars/LuaPas.pas
changeset 2920 5cf48744a700
parent 2829 dfaa6f918ad2
child 2922 34efcb0681d8
equal deleted inserted replaced
2919:70244c730ea0 2920:5cf48744a700
    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 const
    22 // only looking for "lua" might be dangerous but including version numbers
    23 {$IFDEF UNIX}
    23 // unfortunately causes trouble on some linux/unix systems.
    24   {$IFDEF DARWIN}
    24 const LuaLibName = 'lua';
    25     LuaLibName = 'lua';
       
    26   {$ELSE}
       
    27     LuaLibName = 'lua5.1.so';
       
    28   {$ENDIF}
       
    29 {$ELSE}
       
    30   LuaLibName = 'lua.dll';
       
    31 {$ENDIF}
       
    32 
       
    33 
    25 
    34 (*****************************************************************************)
    26 (*****************************************************************************)
    35 (*                               luaconfig.h                                 *)
    27 (*                               luaconfig.h                                 *)
    36 (*****************************************************************************)
    28 (*****************************************************************************)
    37 
    29