Main Page   Compound List   File List   Compound Members   File Members  

Script.cpp File Reference

#include "Script.h"
#include <stdio.h>
#include <string.h>
#include "lualib.h"

Include dependency graph for Script.cpp:

Include dependency graph

Go to the source code of this file.

Functions

int Script_LOG (lua_State* state)
void FatalError ()
void IndentFile (FILE* file, unsigned int indentLevel)
 Adds [indentLevel] number of spaces to the file.

void WriteObject (Script& script, FILE* file, const char* name, Script::Object value, unsigned int indentLevel)
 Writes a Lua object to a text file.


Variables

const char* LuaScript_CopyTable


Function Documentation

void FatalError ( ) [static]
 

void IndentFile ( FILE * file,
unsigned int indentLevel ) [static]
 

Adds [indentLevel] number of spaces to the file.

int Script_LOG ( lua_State * state ) [static]
 

void WriteObject ( Script & script,
FILE * file,
const char * name,
Script::Object value,
unsigned int indentLevel ) [static]
 

Writes a Lua object to a text file.


Variable Documentation

const char * LuaScript_CopyTable [static]
 

Initializer:

"function CopyTable(table) "
"local newTable = {} "
"for key, value in table do "
"if type(value) == \"table\" then "
"newTable[key] = CopyTable(value) "
"else "
"newTable[key] = value "
"end "
"end "
"return newTable "
"end"


Generated at Wed Dec 13 00:55:52 2000 for Script (Lua Wrapper) by doxygen1.2.2 written by Dimitri van Heesch, © 1997-2000