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 SetupRuntimeArrayType( Env& e )
{
RegisterBuiltinFunc< Value ( Value, uint64_t ) >( e, "RTArray"_sid,
[]( const Value& containedType, uint64_t count )
{
if( !GetLLVMType( containedType ) )
{
// 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 SetupRuntimeArrayType( Env& e )
{
RegisterBuiltinFunc< Eager< Value > ( Value, uint64_t ) >( e, "RTArray"_sid,
[]( const Value& containedType, uint64_t count )
{
if( !GetLLVMType( containedType ) )
{
// TODO come up with some lightweight builtin option type
// for the builtin apis, because this is a very bullshit
// way to handle errors
|