mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-26 22:40:06 +00:00
CPunch
3316c77667
- for debug builds, the LAIKA_DEBUG_BUILD macro will be defined in lconfig.h - LAIKA_OBFUSCATE now controls the winobf IAT obfuscation as well
44 lines
931 B
C
44 lines
931 B
C
#ifndef LAIKA_LAIKA_H
|
|
#define LAIKA_LAIKA_H
|
|
|
|
#include "lconfig.h"
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <inttypes.h>
|
|
|
|
#ifdef LAIKA_DEBUG_BUILD
|
|
# define LAIKA_DEBUG(...) \
|
|
printf("[~] " __VA_ARGS__); \
|
|
fflush(stdout);
|
|
#else
|
|
# define LAIKA_DEBUG(...) ((void)0) /* no op */
|
|
#endif
|
|
|
|
#ifndef _MSC_VER
|
|
# define LAIKA_FORCEINLINE __attribute__((always_inline)) inline
|
|
#else
|
|
# define LAIKA_FORCEINLINE __forceinline
|
|
#endif
|
|
|
|
LAIKA_FORCEINLINE int MIN(int a, int b)
|
|
{
|
|
return a < b ? a : b;
|
|
}
|
|
|
|
LAIKA_FORCEINLINE int MAX(int a, int b)
|
|
{
|
|
return a > b ? a : b;
|
|
}
|
|
|
|
struct sLaika_peer;
|
|
struct sLaika_socket;
|
|
struct sLaika_pollList;
|
|
struct sLaika_task;
|
|
struct sLaika_taskService;
|
|
|
|
#endif |