OOLua  2.0.1
C++ and Lua binding
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
oolua_error.h File Reference

Generic header to be included when handling errors. More...

#include "oolua_config.h"
#include <string>

Namespaces

 OOLUA
 This is the root namespace of the Library.
 

Functions

void OOLUA::reset_error_value (lua_State *vm)
 Reset the error state such that a call to OOLUA::get_last_error will return an empty string. More...
 
std::string OOLUA::get_last_error (lua_State *vm)
 Returns the last stored error. More...
 

Detailed Description

Generic header to be included when handling errors.

When the library is compiled with OOLUA_USE_EXCEPTIONS == 1 it will include the oolua_exception.h header and provide dummy implementations for OOLUA::get_last_error and OOLUA::reset_error_value. When compiled with OOLUA_STORE_LAST_ERROR == 1 it provides implementations for OOLUA::get_last_error and OOLUA::reset_error_value.

See Also
Library Configuration