Commit 13c418f7 authored by jdelange's avatar jdelange

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

   po-hi-c/src/po_hi_lua.c
   - Integration of the LUA VM within PolyORB-HI-C



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@3666 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent c339c3d9
......@@ -12,12 +12,20 @@
#ifndef __PO_HI_LUA_H__
#define __PO_HI_LUA_H__
#include <po_hi_config.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <po_hi_returns.h>
#ifdef TARGET_NATIVE
#ifdef HAVE_LIBLUA5_1
#define __PO_HI_USE_LUA
#else
#undef __PO_HI_USE_LUA
#endif
#ifdef __PO_HI_USE_LUA
#include <lua5.1/lua.h>
#include <lua5.1/lualib.h>
#include <lua5.1/lauxlib.h>
......
......@@ -12,7 +12,7 @@
int __po_hi_lua_load (const char* filename, const char* functionname)
{
#ifdef TARGET_NATIVE
#ifdef __PO_HI_USE_LUA
lua_State * state;
state = lua_open();
luaL_openlibs(state);
......
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