25 lines
569 B
C
25 lines
569 B
C
#ifndef __GRAVITY__FUNCTION_H
|
|
#define __GRAVITY__FUNCTION_H
|
|
|
|
#include "type.h"
|
|
#include "block.h"
|
|
#include "list.h"
|
|
#include "strb.h"
|
|
#include <stdint.h>
|
|
#include <stdarg.h>
|
|
#include <string.h>
|
|
|
|
UseList(GravityBlock);
|
|
|
|
typedef struct GravityOpaqueFunction* GravityFunction;
|
|
|
|
struct GravityOpaqueFunction {
|
|
GravityFunctionType functionType;
|
|
List(GravityBlock) blocks;
|
|
const char* name;
|
|
};
|
|
|
|
GravityBlock gravityStartBlock(const char* name, GravityFunction function, uint16_t numBlockParams, ...);
|
|
char* gravityFunctionToCStr(GravityFunction function);
|
|
|
|
#endif |