updated embeded, windows and jni examples

This commit is contained in:
strawmanbobi
2019-06-16 22:04:20 +08:00
parent c78ae1be69
commit 348cd663d1
17 changed files with 549 additions and 52 deletions

View File

@@ -32,6 +32,11 @@ extern "C"
#define FORMAT_HEX 16
#define FORMAT_DECIMAL 10
// #define USE_DYNAMIC_TAG 1
#if defined USE_DYNAMIC_TAG
#include <stdlib.h>
#endif
typedef unsigned char UINT8;
typedef signed char INT8;
@@ -54,12 +59,13 @@ void noprint(const char *fmt, ...);
#define ir_memcpy(A, B, C) memcpy(A, B, C)
#define ir_memset(A, B, C) memset(A, B, C)
#define ir_strlen(A) strlen(A)
#if (defined BOARD_PC) && (!defined BOARD_PC_JNI)
#if ((defined BOARD_PC) || (defined BOARD_PC_JNI)) && (defined DEBUG)
#define ir_printf printf
#else
#define ir_printf noprint
#endif
#define USER_DATA_SIZE 1636
// #define USER_DATA_SIZE 4096
#ifdef __cplusplus
}