unlogic
Loading...
Searching...
No Matches
RuntimeLibrary.cpp File Reference
#include "RuntimeLibrary.h"
#include "graphic/Scene.h"

Go to the source code of this file.

Functions

void unlogic_scene_add_plot (Scene *scene, char const *name, Plot2dFunctionType function)
 

Variables

LibrarySymbol scene_add_plot (runtime, "unlogic_scene_add_plot",(void *) unlogic_scene_add_plot, [](llvm::LLVMContext &ctx, llvm::Module &mod) { std::array< llvm::Type *, 1 > plot_function_args={ llvm::Type::getDoubleTy(ctx), };llvm::FunctionType *plot_function_type=llvm::FunctionType::get(llvm::Type::getDoubleTy(ctx), plot_function_args, false);std::array< llvm::Type *, 3 > args={ llvm::PointerType::getUnqual(ctx), llvm::PointerType::getUnqual(llvm::Type::getInt8Ty(ctx)), llvm::PointerType::getUnqual(plot_function_type), };llvm::Type *ret=llvm::Type::getVoidTy(ctx);llvm::FunctionType *fn=llvm::FunctionType::get(ret, args, false);llvm::Function::Create(fn, llvm::GlobalValue::ExternalLinkage, "unlogic_scene_add_plot", mod);})
 

Function Documentation

◆ unlogic_scene_add_plot()

void unlogic_scene_add_plot ( Scene scene,
char const *  name,
Plot2dFunctionType  function 
)

Definition at line 8 of file RuntimeLibrary.cpp.

Variable Documentation

◆ scene_add_plot

LibrarySymbol scene_add_plot(runtime, "unlogic_scene_add_plot",(void *) unlogic_scene_add_plot,[](llvm::LLVMContext &ctx, llvm::Module &mod) { std::array< llvm::Type *, 1 > plot_function_args={ llvm::Type::getDoubleTy(ctx), };llvm::FunctionType *plot_function_type=llvm::FunctionType::get(llvm::Type::getDoubleTy(ctx), plot_function_args, false);std::array< llvm::Type *, 3 > args={ llvm::PointerType::getUnqual(ctx), llvm::PointerType::getUnqual(llvm::Type::getInt8Ty(ctx)), llvm::PointerType::getUnqual(plot_function_type), };llvm::Type *ret=llvm::Type::getVoidTy(ctx);llvm::FunctionType *fn=llvm::FunctionType::get(ret, args, false);llvm::Function::Create(fn, llvm::GlobalValue::ExternalLinkage, "unlogic_scene_add_plot", mod);}) ( runtime  ,
"unlogic_scene_add_plot"  ,
(void *)  unlogic_scene_add_plot,
[] (llvm::LLVMContext &ctx, llvm::Module &mod) { std::array< llvm::Type *, 1 > plot_function_args={ llvm::Type::getDoubleTy(ctx), };llvm::FunctionType *plot_function_type=llvm::FunctionType::get(llvm::Type::getDoubleTy(ctx), plot_function_args, false);std::array< llvm::Type *, 3 > args={ llvm::PointerType::getUnqual(ctx), llvm::PointerType::getUnqual(llvm::Type::getInt8Ty(ctx)), llvm::PointerType::getUnqual(plot_function_type), };llvm::Type *ret=llvm::Type::getVoidTy(ctx);llvm::FunctionType *fn=llvm::FunctionType::get(ret, args, false);llvm::Function::Create(fn, llvm::GlobalValue::ExternalLinkage, "unlogic_scene_add_plot", mod);}   
)