Last change
on this file since 8053 was
8051,
checked in by bensch, 19 years ago
|
lua: new Executor for lua-interpretation
|
File size:
834 bytes
|
Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: ... |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
17 | |
---|
18 | #include "executor_lua.h" |
---|
19 | |
---|
20 | template<> bool fromLua<bool>(lua_state* state) { return lua_tonumber(state); }; |
---|
21 | template<> int fromLua<int>(lua_state* state); |
---|
22 | template<> unsigned int fromLua<unsigned int>(lua_state* state); |
---|
23 | template<> float fromLua<float>(lua_state* state); |
---|
24 | template<> char fromLua<char>(lua_state* state); |
---|
25 | template<> const std::string& fromLua<const std::string&>(lua_state* state); |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.