1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "builtins/builtins.h"
using namespace empathy;
using namespace empathy::builtins;
namespace empathy::builtins
{
void SetupRuntimePointerType( Env& e )
{
RegisterBuiltinFunc< Value ( Value ) >( e, "RTPointer"_sid,
[]( const Value& pointedType )
{
if( !GetLLVMType( pointedType ) )
{
// TODO come up with some lightweight builtin option type
// for the builtin apis, because this is a very bullshit
// way to handle errors
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "builtins/builtins.h"
using namespace empathy;
using namespace empathy::builtins;
namespace empathy::builtins
{
void SetupRuntimePointerType( Env& e )
{
RegisterBuiltinFunc< Eager< Value > ( Value ) >( e, "RTPointer"_sid,
[]( const Value& pointedType )
{
if( !GetLLVMType( pointedType ) )
{
// TODO come up with some lightweight builtin option type
// for the builtin apis, because this is a very bullshit
// way to handle errors
|