Goose  Artifact [32a49bf104]

Artifact 32a49bf1049ceba71db8934eb952180b70e6ef6bcf0668d3b9cc7052398753a1:

  • File bs/builtins/api/api.h — part of check-in [c20ed5f1d3] at 2019-08-20 16:15:25 on branch trunk —
    • Fixed error messages when compiling a file through the real frontend (this was broken again because this is a day ending in y)
    • Implemented initialization, assigment, and equality comparison for ct_char.
    • Implemented the cast builtin function. Its only overload currently allows to cast a ct_char into a ct_int.
    • Implemented the PrintAsciiChar builtin function to write a single ascii character.
    (user: achavasse size: 430)

#ifndef EMPATHY_BUILTINS_API_H
#define EMPATHY_BUILTINS_API_H

#include "support/support.h"
#include "codegen/codegen.h"

namespace empathy::builtins
{
    extern void SetupApiString( Env& e );
    extern void SetupApiCompiler( Env& e );

    static inline void SetupBuiltinApi( Env& e )
    {
        SetupApiString( e );
        SetupApiCompiler( e );
        SetupApiSupport( e );
        SetupApiCodeGen( e );
    }
}

#endif