lua_cl2.h File Reference

Go to the source code of this file.

Functions

void * l_alloc (void *ud, void *ptr, size_t osize, size_t nsize)
lua_Statecl_lua_new ()
lua_Statecl_lua_new_libs ()
gboolean validate_lua_syntax (const gchar *value, GError **error)
int atpanic_txtlog_exit (lua_State *L)
int atpanic_log_exit (lua_State *L)
int atpanic_throw (lua_State *L)
int atpanic_txtlog_throw (lua_State *L)
int lua_raise_gerror (lua_State *L, GError *error)
GError * lua_get_gerror (lua_State *L)
void lua_set_gerror (lua_State *L, GError **error)

Function Documentation

int atpanic_log_exit ( lua_State L  ) 

Definition at line 201 of file lua_cl2.cpp.

References er_FATAL, er_log_none, and lua_tostring.

Referenced by cl_lua_new().

int atpanic_throw ( lua_State L  ) 

Definition at line 181 of file lua_cl2.cpp.

Referenced by atpanic_txtlog_throw().

int atpanic_txtlog_exit ( lua_State L  ) 

Definition at line 194 of file lua_cl2.cpp.

References er_fatal(), and txtlog_lua_error().

int atpanic_txtlog_throw ( lua_State L  ) 

Definition at line 188 of file lua_cl2.cpp.

References atpanic_throw(), and txtlog_lua_error().

lua_State* cl_lua_new (  ) 

Definition at line 49 of file lua_cl2.cpp.

References atpanic_log_exit(), l_alloc(), lua_atpanic(), and lua_newstate().

Referenced by cl_lua_new_libs(), and validate_lua_syntax().

lua_State* cl_lua_new_libs (  ) 

Definition at line 64 of file lua_cl2.cpp.

References cl_lua_new(), luaL_openlibs(), and my_openlibs().

Referenced by eval_lua_str(), new_my_lua(), and CCliapiSession::ServiceL().

void* l_alloc ( void *  ud,
void *  ptr,
size_t  osize,
size_t  nsize 
)

The code above this notice is covered by the following license:

Copyright 2009 Helsinki Institute for Information Technology (HIIT) and the authors. All rights reserved.

Authors: Tero Hasu <tero.hasu@hut.fi>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 266 of file lua_cl2.cpp.

Referenced by cl_lua_new(), and luaL_newstate().

GError* lua_get_gerror ( lua_State L  ) 

Definition at line 132 of file lua_cl2.cpp.

References domain_lua, gx_error_new_literal(), and lua_tostring.

Referenced by lua_set_gerror().

int lua_raise_gerror ( lua_State L,
GError *  error 
)
void lua_set_gerror ( lua_State L,
GError **  error 
)

Definition at line 140 of file lua_cl2.cpp.

References lua_get_gerror().

Referenced by eval_lua_str().

gboolean validate_lua_syntax ( const gchar *  value,
GError **  error 
)

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:00 2011 by Doxygen 1.6.1