mirror of
https://github.com/CPunch/Laika.git
synced 2025-10-28 01:00:07 +00:00
minor 'DEBUG' refactoring
- for debug builds, the LAIKA_DEBUG_BUILD macro will be defined in lconfig.h - LAIKA_OBFUSCATE now controls the winobf IAT obfuscation as well
This commit is contained in:
@@ -24,10 +24,10 @@
|
||||
|
||||
/* LAIKA_ERROR(printf args):
|
||||
if called after a LAIKA_TRY block will jump to the previous LAIKA_CATCH/LAIKA_TRYEND block,
|
||||
otherwise program is exit()'d. if DEBUG is defined printf is called with passed args, else
|
||||
otherwise program is exit()'d. if LAIKA_DEBUG_BUILD is defined printf is called with passed args, else
|
||||
arguments are ignored.
|
||||
*/
|
||||
#ifndef DEBUG
|
||||
#ifndef LAIKA_DEBUG_BUILD
|
||||
# define LAIKA_ERROR(...) \
|
||||
do { \
|
||||
if (LAIKA_ISPROTECTED) \
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef LAIKA_RSA_H
|
||||
#define LAIKA_RSA_H
|
||||
|
||||
#include "lconfig.h"
|
||||
#include "sodium.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
@@ -76,7 +76,7 @@ enum
|
||||
OP_TESTJMP, /* if stk_indx[uint8_t] != 0, pc += [int8_t] */
|
||||
|
||||
/* misc. */
|
||||
#ifdef DEBUG
|
||||
#ifdef LAIKA_DEBUG_BUILD
|
||||
OP_DEBUG
|
||||
#endif
|
||||
};
|
||||
@@ -154,7 +154,7 @@ LAIKA_FORCEINLINE void laikaV_execute(struct sLaikaV_vm *vm)
|
||||
|
||||
break;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#ifdef LAIKA_DEBUG_BUILD
|
||||
case OP_DEBUG: {
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user