Author Topic: Lua v. 5.1.3 Headers  (Read 4641 times)

0 Members and 1 Guest are viewing this topic.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2481
  • User-Rate: +204/-0
Lua v. 5.1.3 Headers
« on: July 04, 2008, 02:25:27 AM »
Lua is a powerful, fast, light-weight, embeddable scripting language.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

Lua Website:
Lua 5.1 Reference Manual:
Lua Wiki:
Lua 5.1 Source Code:
Lua Binaries:

The attached file includes mytranslation of the LUA C headers to PowerBASIC, as well as some useful wrapper functions and lua5.1.dll.

Note Lua 5.1.3 for Windows has a dependency on msvcr80.dll, the C-Runtime Library for Microsoft Visual C 2005. To use it with PowerBASIC you need to embed Microsoft.VC80.CRT.manifest in a resource file that, in turn, will be embeded in your application.


Code: [Select]
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
      <assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50727.762' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />

Example of resource file: MSVCR80.RC

Code: [Select]
1 24 "Microsoft.VC80.CRT.manifest"

Once compiled with the resource compiler (RC.EXE), include it in your application as follows:

Code: [Select]

« Last Edit: August 07, 2011, 01:21:07 AM by José Roca »