nLuaTest Class Reference
[nLuaServer]
#include <nluatest.h>
Inheritance diagram for nLuaTest:

Detailed Description
A little test suite for testing the Lua server.(c) 2003 Vadim Macagon
Definition at line 21 of file nluatest.h.
Public Member Functions | |
| nLuaTest () | |
| constructor | |
| virtual | ~nLuaTest () |
| destructor | |
| void | TestScriptCmds () |
| void | MakeZombies () |
| void | EatAnObject (nRoot *obj) |
| void | TestNativeCmds () |
| void | AddNativeCmdToRoot () |
Constructor & Destructor Documentation
|
|
constructor
|
|
|
destructor
Definition at line 20 of file nluatest_main.cc. |
Member Function Documentation
|
|
Tests script side cmds. Definition at line 28 of file nluatest_main.cc. |
|
|
Removes some objects from the NOH (hopefuly leaving some zombie thunks on the lua side as a result... muaahahaha). Definition at line 117 of file nluatest_main.cc. |
|
|
Definition at line 128 of file nluatest_main.cc. |
|
|
Adds and tests natively implemented cmds. Definition at line 190 of file nluatest_main.cc. |
|
|
Tests a natively implemented cmd that was added at run-time to nRoot. By the time this method gets called cmds.lua has already been executed, as such nRoot already has 2 script-side implemented cmds. Here we add a third cmd that's implemented in C++. Note that script-side implemented cmds can have a unique implementation for every instance of an nRoot. However, cmds implemented in C++ will have a single implementation for all instances of nRoot. This limitation of C++ implemented cmds comes about due to the fact that we have to store a function pointer in each cmd prototype, whereas script implemented cmds can just be looked up by name (stored in the cmd prototype). Definition at line 276 of file nluatest_main.cc. |
The documentation for this class was generated from the following files: