Renaming monicelli::plist to monicelli::plist_of
This commit is contained in:
parent
b2e7a11b7a
commit
711f693f55
|
@ -587,6 +587,10 @@ bool BitcodeEmitter::emit(Program const& program) {
|
||||||
GUARDED(proto.emit(this));
|
GUARDED(proto.emit(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Function const& function: program.getFunctions()) {
|
||||||
|
GUARDED(function.getPrototype().emit(this));
|
||||||
|
}
|
||||||
|
|
||||||
for (Function const& function: program.getFunctions()) {
|
for (Function const& function: program.getFunctions()) {
|
||||||
GUARDED(function.emit(this));
|
GUARDED(function.emit(this));
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ void ModuleRegistry::registerFunction(FunctionPrototype *proto) {
|
||||||
#define PUT(type, funcname) \
|
#define PUT(type, funcname) \
|
||||||
new FunctionPrototype { \
|
new FunctionPrototype { \
|
||||||
new Id {#funcname}, Type::VOID, \
|
new Id {#funcname}, Type::VOID, \
|
||||||
plist({ \
|
plist_of({ \
|
||||||
new FunArg {new Id {"value"}, type, false} \
|
new FunArg {new Id {"value"}, type, false} \
|
||||||
}), \
|
}), \
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ void monicelli::registerStdLib(ModuleRegistry &r) {
|
||||||
r.registerFunction(GET(Type::INT, __Monicelli_getInt));
|
r.registerFunction(GET(Type::INT, __Monicelli_getInt));
|
||||||
r.registerFunction(new FunctionPrototype {
|
r.registerFunction(new FunctionPrototype {
|
||||||
new Id("__Monicelli_assert"), Type::VOID,
|
new Id("__Monicelli_assert"), Type::VOID,
|
||||||
plist({
|
plist_of({
|
||||||
new FunArg {new Id("condition"), Type::CHAR, false}
|
new FunArg {new Id("condition"), Type::CHAR, false}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,7 +33,7 @@ template<typename T> using PointerList = boost::ptr_vector<T>;
|
||||||
template<typename T> using PointerSet = boost::ptr_unordered_set<T>;
|
template<typename T> using PointerSet = boost::ptr_unordered_set<T>;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
PointerList<T>* plist(std::initializer_list<T*> elements) {
|
PointerList<T>* plist_of(std::initializer_list<T*> elements) {
|
||||||
PointerList<T> *result = new PointerList<T>(elements.size());
|
PointerList<T> *result = new PointerList<T>(elements.size());
|
||||||
for (T *el: elements) {
|
for (T *el: elements) {
|
||||||
result->push_back(el);
|
result->push_back(el);
|
||||||
|
|
Reference in New Issue
Block a user