marrub
/
Lithia
Archived
1
0
Fork 0
This repository has been archived on 2023-06-17. You can view files and clone it, but cannot push or open issues/pull-requests.
Lithia/source/Headers/lith_types.h

47 lines
872 B
C

// Copyright © 2018 Graham Sanderson, all rights reserved.
#ifndef lith_types_h
#define lith_types_h
#include <stdint.h>
#include <stdbool.h>
#include <stdfix.h>
#define stkcall [[__call("StkCall")]]
#define script [[__call("ScriptS")]]
#define scriptn [[__call("ScriptI")]]
#define optargs(x) [[__optional_args(x)]]
#define noinit [[__no_init]]
#define anonymous [[__anonymous]]
#define address(x) [[__address(x)]]
#define acs [[__extern("ACS")]]
#define stksize(x) [[__alloc_Aut(x)]]
#define type(x) [[__script(x)]]
#define net type("net")
#define clientside type("clientside")
typedef int64_t i64;
typedef int96_t i96;
typedef uint32_t u32;
typedef uint64_t u64;
typedef uint96_t u96;
typedef unsigned char byte;
typedef long fixed fixed64;
struct polar {
fixed ang;
fixed dst;
};
struct vec2f {
float x, y;
};
struct vec2i {
int x, y;
};
#endif