xbyak/test/lib_test.cpp
2012-12-02 21:28:30 +09:00

23 lines
377 B
C++

#include "lib.h"
#include <xbyak/xbyak.h>
struct Code : public Xbyak::CodeGenerator {
Code()
{
printf("Code:%s\n", eax.toString());
ret();
}
};
void init()
try
{
static bool init = true;
printf("in lib_test %d\n", init);
if (!init) return;
init = false;
static Code code;
} catch (const Xbyak::Error& e) {
printf("err=%s\n", Xbyak::ConvertErrorToString(e));
}