Make header compatible with C++
This commit is contained in:
8
fadec.h
8
fadec.h
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user