Make header compatible with C++

This commit is contained in:
Alexis Engelke
2019-08-18 18:13:53 +02:00
parent bb3c7a4a4f
commit c930fa03dc

View File

@@ -5,6 +5,10 @@
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum { typedef enum {
FD_REG_R0 = 0, FD_REG_R1, FD_REG_R2, FD_REG_R3, FD_REG_R0 = 0, FD_REG_R1, FD_REG_R2, FD_REG_R3,
FD_REG_R4, FD_REG_R5, FD_REG_R6, FD_REG_R7, FD_REG_R4, FD_REG_R5, FD_REG_R6, FD_REG_R7,
@@ -198,4 +202,8 @@ void fd_format(const FdInstr* instr, char* buf, size_t len);
* Only valid if FD_OP_TYPE == FD_OT_IMM **/ * Only valid if FD_OP_TYPE == FD_OT_IMM **/
#define FD_OP_IMM(instr,idx) ((instr)->imm) #define FD_OP_IMM(instr,idx) ((instr)->imm)
#ifdef __cplusplus
}
#endif
#endif #endif