2014-12-11 07:48:18 -08:00
|
|
|
#ifndef _ELUA_PRIVATE_H
|
|
|
|
#define _ELUA_PRIVATE_H
|
|
|
|
|
2014-12-12 02:44:58 -08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ENABLE_NLS
|
|
|
|
# include <locale.h>
|
|
|
|
# include <libintl.h>
|
|
|
|
# define _(x) dgettext(PACKAGE, x)
|
|
|
|
#else
|
|
|
|
# define _(x) (x)
|
|
|
|
#endif
|
|
|
|
|
2014-12-11 07:48:18 -08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <Eina.h>
|
|
|
|
#include <Ecore.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_EVIL
|
|
|
|
#include <Evil.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <lua.h>
|
|
|
|
#include <lualib.h>
|
|
|
|
#include <lauxlib.h>
|
|
|
|
|
2015-04-09 06:37:12 -07:00
|
|
|
struct _Elua_State
|
|
|
|
{
|
|
|
|
lua_State *luastate;
|
|
|
|
Eina_Stringshare *coredir;
|
|
|
|
Eina_Stringshare *moddir;
|
|
|
|
Eina_Stringshare *appsdir;
|
2015-04-09 08:12:15 -07:00
|
|
|
Eina_List *cmods;
|
2015-04-09 06:37:12 -07:00
|
|
|
};
|
|
|
|
|
2014-12-11 07:48:18 -08:00
|
|
|
extern int _elua_log_dom;
|
|
|
|
|
|
|
|
#define DBG(...) EINA_LOG_DOM_DBG(_elua_log_dom, __VA_ARGS__)
|
|
|
|
#define INF(...) EINA_LOG_DOM_INFO(_elua_log_dom, __VA_ARGS__)
|
|
|
|
#define WRN(...) EINA_LOG_DOM_WARN(_elua_log_dom, __VA_ARGS__)
|
|
|
|
#define ERR(...) EINA_LOG_DOM_ERR(_elua_log_dom, __VA_ARGS__)
|
|
|
|
#define CRT(...) EINA_LOG_DOM_CRITICAL(_elua_log_dom, __VA_ARGS__)
|
|
|
|
|
|
|
|
#endif
|