Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
nm_frame.cpp File Reference
#include <stdio.h>
#include "xbyak/xbyak.h"
#include "nm.cpp"
Include dependency graph for nm_frame.cpp:

Go to the source code of this file.

Classes

class  Sample
 
class  ErrorSample
 

Macros

#define XBYAK_NO_OP_NAMES
 
#define XBYAK_ENABLE_OMITTED_OPERAND
 
#define _STR(x)
 
#define TEST(syntax)
 

Functions

int main ()
 

Macro Definition Documentation

◆ _STR

#define _STR ( x)
Value:
#x

Definition at line 18 of file nm_frame.cpp.

◆ TEST

#define TEST ( syntax)
Value:
err = true; try { syntax; err = false; } catch (Xbyak::Error) { } catch (...) { } if (!err) printf("should be err:%s;\n", _STR(syntax))
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30
#define _STR(x)
Definition nm_frame.cpp:18

Definition at line 19 of file nm_frame.cpp.

◆ XBYAK_ENABLE_OMITTED_OPERAND

#define XBYAK_ENABLE_OMITTED_OPERAND

Definition at line 3 of file nm_frame.cpp.

◆ XBYAK_NO_OP_NAMES

#define XBYAK_NO_OP_NAMES

Definition at line 2 of file nm_frame.cpp.

Function Documentation

◆ main()

int main ( void )

Definition at line 33 of file nm_frame.cpp.

35{
36 size_t size = sizeof(Xbyak::Operand);
37 if (size != 4) {
38 printf("sizeof Operand %d\n", (int)size);
39 }
40 try {
41 Sample s;
42 s.gen();
43 } catch (std::exception& e) {
44 printf("ERR:%s\n", e.what());
45 } catch (...) {
46 printf("unknown error\n");
47 }
48 ErrorSample es;
49 es.gen();
50} catch (std::exception& e) {
51 printf("err %s\n", e.what());
52 return 1;
53}
void gen()
Definition nm_frame.cpp:24
char * s
Here is the call graph for this function: