1
This commit is contained in:
parent
0ff5409773
commit
adbb00ff28
@ -10,6 +10,7 @@
|
|||||||
#include <a8/uuid.h>
|
#include <a8/uuid.h>
|
||||||
#include <a8/collision.h>
|
#include <a8/collision.h>
|
||||||
#include <a8/magicenum.h>
|
#include <a8/magicenum.h>
|
||||||
|
#include <a8/lisp.h>
|
||||||
|
|
||||||
#include <f8/udplog.h>
|
#include <f8/udplog.h>
|
||||||
#include <f8/netmsghandler.h>
|
#include <f8/netmsghandler.h>
|
||||||
@ -119,6 +120,12 @@ static void SavePerfLog()
|
|||||||
|
|
||||||
bool App::Init(int argc, char* argv[])
|
bool App::Init(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
{
|
||||||
|
auto env = std::make_shared<a8::lisp::GlobalScope>();
|
||||||
|
auto p = a8::lisp::Expr::Compile("(+ 1 3)", env);
|
||||||
|
auto ret = a8::lisp::Expr::Eval(p, env);
|
||||||
|
a8::XPrintf("p:%s ret:%f\n", {p->ToXObject().ToJsonStr(), ret->ToXObject().ToJsonStr()});
|
||||||
|
}
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
this->argc = argc;
|
this->argc = argc;
|
||||||
this->argv = argv;
|
this->argv = argv;
|
||||||
|
2
third_party/a8
vendored
2
third_party/a8
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 592661bae5547a0c1675816595b803f902d83041
|
Subproject commit 8cf0d04a936a352fff2a502bf39d9c5729a15e12
|
Loading…
x
Reference in New Issue
Block a user