protect regs

This commit is contained in:
Vitor Santos Costa 2016-08-30 12:32:08 -05:00
parent e4c82910a2
commit 9bdfabc381

View File

@ -27,10 +27,19 @@ typedef enum {
retry_table_loader
} yap_low_level_port;
void low_level_trace(yap_low_level_port, PredEntry *, CELL *);
#ifdef saveregs
#define low_level_trace(Port, pred, args) \
{ \
saveregs(); \
low_level_trace__(Port, pred, args); \
setregs(); \
}
#else
#define low_level_trace(Port, pred, args) low_level_trace__(Port, pred, args)
#endif
void low_level_trace__(yap_low_level_port, PredEntry *, CELL *);
void Yap_InitLowLevelTrace(void);
void toggle_low_level_trace(void);
#endif