1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
-
-
|
#ifndef GOOSE_BUILTINS_TYPES_RUNTIME_H
#define GOOSE_BUILTINS_TYPES_RUNTIME_H
#include "basic.h"
#include "pointer.h"
#include "array.h"
#include "record.h"
namespace goose::builtins
{
extern void SetupRuntimeBasicTypes( Env& e );
extern void SetupRuntimeTypesChecking( Env& e );
static inline void SetupRuntimeTypes( Env& e )
{
SetupRuntimeBasicTypes( e );
SetupRuntimePointerType( e );
SetupRuntimeArrayType( e );
SetupRuntimeRecordType( e );
SetupRuntimeTypesChecking( e );
}
extern bool IsRuntimeType( const Value& t );
extern const codegen::Type* GetCodegenType( const Value& t );
}
|