lua-users home
lua-l archive
Re: Proxy DLL for Lua 5.2; do luaopen_* calls need to be forwarded?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Proxy DLL for Lua 5.2; do luaopen_* calls need to be forwarded?
From
: Peng Zhicheng <pengzhicheng1986@
...
>
Date
: 2013年11月02日 12:08:29 +0800
于 2013年11月1日 2:41, Paul K 写道:
[
Hi All, Why are these calls commented out? Do they not need to be forwarded? Or is it because the modules should not be using those and only the "main" code should? Are there any modules that may need those? Paul. IMHO, the proxy should and need forword just the public APIs (functions with the LUA_API annotation).
the luaopen_* routines are not of this kind - they are not intended be called by C modules.
Instead, they are functions that can be tailored(remember that Lua is an EMBEDDABLE language?).
FYI, the comments from linit.c[1] says this:
>
>/*
> ** If you embed Lua in your program and need to open the standard
> ** libraries, call
luaL_openlibs
in your program. If you need a
> ** different set of libraries, copy this file to your project and edit
> ** it to suit your needs.
> */
>
[1]
http://www.lua.org/source/5.2/linit.c.html
Prev by Date:
Re: ipairs_remove - remove items from array while iterating it
Next by Date:
Re: couple of questions for you :)
Previous by thread:
Re: ipairs_remove - remove items from array while iterating it
Next by thread:
Re: Proxy DLL for Lua 5.2; do luaopen_* calls need to be forwarded?
Index(es):
Date
Thread
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル