/********************************************C++ main.cpp***************************************************/
#include <iostream>
#include <stdio.h>#include <stdlib.h>
#include "lua.hpp"
using namespace std;
int A(lua_State *L)
{
cout << "C A" << endl;
lua_pushstring(L, "A");
return 1;
}
int B(lua_State *L)
{
cout << "C B" << endl;
lua_pushstring(L, "B");
return 1;
}
luaL_Reg apis[] = {
{"A", A},