mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-09-20 16:36:19 +02:00
22 lines
592 B
C++
22 lines
592 B
C++
#include "terminal.h"
|
|
#if defined(__unix__) // Linux and macOS.
|
|
#include "pseudoterminal.h"
|
|
#endif
|
|
|
|
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
|
|
godot::Godot::gdnative_init(o);
|
|
}
|
|
|
|
extern "C" void GDN_EXPORT
|
|
godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
|
|
godot::Godot::gdnative_terminate(o);
|
|
}
|
|
|
|
extern "C" void GDN_EXPORT godot_nativescript_init(void *handle) {
|
|
godot::Godot::nativescript_init(handle);
|
|
|
|
godot::register_tool_class<godot::Terminal>();
|
|
#if defined(__unix__)
|
|
godot::register_class<godot::Pseudoterminal>();
|
|
#endif
|
|
}
|