This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
pacciani/Runtime.h
2015-03-07 17:26:19 +01:00

56 lines
1.6 KiB
C

#ifndef RUNTIME_H
#define RUNTIME_H
/*
* Monicelli: an esoteric language compiler
*
* Copyright (C) 2014 Stefano Sanfilippo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
typedef int8_t __Monicelli_Bool;
typedef int8_t __Monicelli_Char;
typedef int64_t __Monicelli_Int;
typedef float __Monicelli_Float;
typedef double __Monicelli_Double;
#ifdef __cplusplus
extern "C" {
#endif
void __Monicelli_putBool(__Monicelli_Bool value);
void __Monicelli_putChar(__Monicelli_Char value);
void __Monicelli_putInt(__Monicelli_Int value);
void __Monicelli_putFloat(__Monicelli_Float value);
void __Monicelli_putDouble(__Monicelli_Double value);
__Monicelli_Bool __Monicelli_getBool();
__Monicelli_Char __Monicelli_getChar();
__Monicelli_Int __Monicelli_getInt();
__Monicelli_Float __Monicelli_getFloat();
__Monicelli_Double __Monicelli_getDouble();
void __Monicelli_abort();
void __Monicelli_assert(__Monicelli_Bool condition);
#ifdef __cplusplus
}
#endif
#endif