1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 08:54:15 +00:00
UltimateTrainingModpack/source/useful.h
Shivam Dutt 216bcbc0c2 Moved Hash40 and Vector3f structs from l2c.cpp to useful.h
Moved LOAD64 macro from l2c_imports.hpp to useful.h
Moved round_to and the various linear interpolation functions from useful.h to useful_visual.h
More formatting fixes
2019-05-28 15:36:33 -05:00

26 lines
447 B
C

#ifndef USEFUL_H
#define USEFUL_H
#include <switch.h>
#include <string.h>
#include <stdio.h>
#define LINKABLE __attribute__ ((weak))
#define LOAD64 *(u64 *)
#define debug_log(...) {\
char log_buf[0x200]; snprintf(log_buf, 0x200, __VA_ARGS__); \
svcOutputDebugString(log_buf, strlen(log_buf)); }
typedef struct Hash40 {
uint64_t hash : 40;
} Hash40;
typedef struct Vector3f {
float x;
float y;
float z;
} Vector3f;
#endif // USEFUL_H