This repository has been archived on 2023-06-17. You can view files and clone it, but cannot push or open issues/pull-requests.
2018-08-08 21:02:47 -07:00
|
|
|
// Copyright © 2018 Graham Sanderson, all rights reserved.
|
|
|
|
#ifndef lith_types_h
|
|
|
|
#define lith_types_h
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdfix.h>
|
|
|
|
|
2018-08-09 21:27:27 -07:00
|
|
|
#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")
|
|
|
|
|
2018-08-08 21:02:47 -07:00
|
|
|
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
|