projects
/
kaleidoscope.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[kaleidoscope.git]
/
Kaleidoscope
/
stdlib.cpp
1
//
2
// stdlib.cpp
3
// Kaleidoscope
4
//
5
// Created by Luke Lau on 11/02/2018.
6
// Copyright © 2018 Luke Lau. All rights reserved.
7
//
8
9
#include "stdlib.hpp"
10
11
#ifdef LLVM_ON_WIN32
12
#define DLLEXPORT __declspec(dllexport)
13
#else
14
#define DLLEXPORT
15
#endif
16
17
extern "C" DLLEXPORT double putchard(double X) {
18
fputc((char)X, stderr);
19
return 0;
20
}