hedgewars/hwLibrary.pas
changeset 4438 39ab70b37e01
parent 4437 05192cdbce9b
child 4603 d362ab6c7f53
equal deleted inserted replaced
4437:05192cdbce9b 4438:39ab70b37e01
    10 // Mark all Pascal procedures/functions that you wish to call from C/C++/Objective-C code using
    10 // Mark all Pascal procedures/functions that you wish to call from C/C++/Objective-C code using
    11 // "cdecl; export;" (see the fpclogo.pas unit for an example), and then add C-declarations for
    11 // "cdecl; export;" (see the fpclogo.pas unit for an example), and then add C-declarations for
    12 // these procedures/functions to the PascalImports.h file (also in the "Pascal Sources" group)
    12 // these procedures/functions to the PascalImports.h file (also in the "Pascal Sources" group)
    13 // to make these functions available in the C/C++/Objective-C source files
    13 // to make these functions available in the C/C++/Objective-C source files
    14 // (add "#include PascalImports.h" near the top of these files if it's not there yet)
    14 // (add "#include PascalImports.h" near the top of these files if it's not there yet)
    15 uses cmem, uVariables, PascalExports;
    15 uses cmem, uVariables, PascalExports, hwengine;
    16 begin
    16 begin
    17     // avoid compiler warnings about units not being used
    17     // avoid compiler warnings about units not being used
    18     isTerminated:= isTerminated;
    18     isTerminated:= isTerminated;
    19     dummy:= dummy;
    19     dummy:= dummy;
    20 end.
    20 end.