mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-05 02:00:31 +08:00
优化define
This commit is contained in:
@@ -39,7 +39,9 @@
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
#define new malloc
|
||||
#ifndef new
|
||||
#define new malloc
|
||||
#endif
|
||||
|
||||
LENDAT* encode(const uint8_t* data, const int32_t len) {
|
||||
LENDAT* encd = (LENDAT*)new(sizeof(LENDAT));
|
||||
|
||||
@@ -46,7 +46,9 @@
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
#define new malloc
|
||||
#ifndef new
|
||||
#define new malloc
|
||||
#endif
|
||||
|
||||
LENDAT* encode(const uint8_t* data, const int64_t len) {
|
||||
LENDAT* encd = (LENDAT*)new(sizeof(LENDAT));
|
||||
|
||||
Reference in New Issue
Block a user