Commit 2814e840 authored by jdelange's avatar jdelange

* po-hi-c/include/po_hi_lua.h

   po-hi-c/src/po_hi_lua.c
   - Put information in debug mode when LUA is not available



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@4438 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 5fd151bc
......@@ -205,19 +205,8 @@ int __po_hi_lua_get_string (__po_hi_lua_context_t*, char*, char*);
#else
#include <po_hi_debug.h>
typedef int __po_hi_lua_context_t;
#define __po_hi_lua_load(arg1,arg2)
#define __po_hi_lua_load_str(arg1,arg2)
#define __po_hi_lua_init_function_call(arg1,arg2)
#define __po_hi_lua_perform_function_call(arg1)
#define __po_hi_lua_push_number(arg1,arg2)
#define __po_hi_lua_push_boolean(arg1,arg2)
#define __po_hi_lua_push_string(arg1,arg2)
#define __po_hi_lua_get_number(arg1,arg2,arg3)
#define __po_hi_lua_get_boolean(arg1,arg2,arg3)
#define __po_hi_lua_get_string(arg1,arg2,arg3)
#endif /* ifdef __PO_HI_USE_LUA */
#endif /* __PO_HI_LUA_H__ */
......
......@@ -257,6 +257,72 @@ int __po_hi_lua_get_string (__po_hi_lua_context_t* ctx, char* varname, char* val
return __PO_HI_SUCCESS;
}
#else
/*
* Stub functions when LUA is not enabled
*/
int __po_hi_lua_load(arg1,arg2)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_load_str(arg1,arg2)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_init_function_call(arg1,arg2)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_perform_function_call(arg1)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_push_number(arg1,arg2)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_push_boolean(arg1,arg2)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_push_string(arg1,arg2)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_get_number(arg1,arg2,arg3)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_get_boolean(arg1,arg2,arg3)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
int __po_hi_lua_get_string(arg1,arg2,arg3)
{
__PO_HI_DEBUG_INFO ("[%s:%d] LUA not implemented\n", __FILE__, __LINE__);
return __PO_HI_UNAVAILABLE;
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment