Some ideas to embedding lua into C/C++
来源:互联网 发布:会计使用的软件 编辑:程序博客网 时间:2024/04/30 06:44
1. Two different way
lua_open can create a new lua_State. Every lua_State has its own execute environment. So, we can create more than one lua_State.
Way 1: Create a lua_State, load all lua script in it. Call functions in the lua_State, they share same global variables.
Way 2: Create a lua_State for every lua script. Every lua script work in its own lua_State.
2. Lua standard library
"luaL_openlibs" open all standard libraries. It's not necessarily, you can ignore it to reduce memory size.
- Some ideas to embedding lua into C/C++
- [ Extending Lua with c/c++ ] & [ Embedding Lua in c/c++ ]
- How to have fun -- some ideas to encourage developer
- Frama-C news and ideas
- mac xcode lua to c and c to lua lua和c互调
- How to port native (C/C++) library into android.
- How to port native (C/C++) library into android.
- Embedding Python in C/C++: Part I
- lua -->c c-->lua
- Some manage ideas just prompt
- Embedding data into JPEG
- Organizing Ideas Into Common Themes
- Some C Learning Notes
- Some Methods (C#)
- Some interesting C problems
- Some simple c program
- [C++] Some hints
- lua study -- how to call lua function use C language
- MOTO XT800 root达成,附update.zip下载
- ffmpeg常用参数一览表
- Response.ContentType 类型详解
- 多线程程序的分析浅见(c++)
- XT800内置软件的更换和删除
- Some ideas to embedding lua into C/C++
- 学了C++,遗忘了C
- 关于j2ee中获取路径的问题!!
- 在RAM中调试NativeSample
- DELPHI 获取版本号、格式化版本信息、比较版本号等相关操作
- 《SOA思想、技术与系统集成应用详解》读书笔记一
- java字符编码原理解析
- c# 制作进度条
- 老板最看重员工的15种品质