[huangxw3@ubuntu]$cat add.lua
function add ( x, y )
return x + y
end
[huangxw3@ubuntu]$cat main.cpp
#include <stdio.h>
#include <iostream>
extern "C"{
#include "lua.h"
#include "lualib.h"
[huangxw3@ubuntu]$cat add.lua
function add ( x, y )
return x + y
end
[huangxw3@ubuntu]$cat main.cpp
#include <stdio.h>
#include <iostream>
extern "C"{
#include "lua.h"
#include "lualib.h"