diff options
| author | Lua Team <team@lua.org> | 1999-07-08 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 1999-07-08 12:00:00 +0000 |
| commit | afb67002d94ef22c14741910ba83da262a6e9338 (patch) | |
| tree | b51ab3502813f590a4b115997f6fe41da43b6586 /etc/README | |
| parent | 377347776f1f3d820f92151f70bec667f96d5e6b (diff) | |
| download | lua-github-3.2.tar.gz | |
Lua 3.23.2
Diffstat (limited to 'etc/README')
| -rw-r--r-- | etc/README | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,9 +5,9 @@ bin2c.c run with lua_dobuffer. This allows C programs to include all necessary Lua code, even in precompiled form. - Even if code is include in source form, bin2c is useful because it + Even if the code is included in source form, bin2c is useful because it avoids the hassle of having to quote special characters in C strings. - Example of usage: run bin2c file1 file2 ... > init.h. The in your C + Example of usage: Run bin2c file1 file2 ... > init.h. Then, in your C program, just do #include "init.h" anywhere in the *body* of a function. This will be equivalent to calling lua_dofile("file1"); lua_dofile("file2"); ... @@ -17,7 +17,8 @@ min.c setfallback.lua An implementation of fallbacks on top of tag methods. - Useful if you have Lua code written for version 2.5 or earlier. + Useful if you have Lua code written for version 2.5 or earlier, + which uses setfallback. If you have C code that uses lua_setfallback, then define LUA_COMPAT2_5 before building Lua (see config). |
