refactor: remove plugins code

上级 14ece421
Goals: Language as Plugins
Stage 1: C++ API for Golang
Stage 2: Rust API for Golang
\ No newline at end of file
package main
// #cgo CFLAGS: -DPNG_DEBUG=1
// #include "wrap.h"
import "C"
func main() {
C.output()
}
\ No newline at end of file
#include <iostream>
#include "wrap.h"
using namespace std;
int output()
{
cout << "Hello, World!";
}
\ No newline at end of file
#ifndef WRAP_CPP_H
#define WRAP_CPP_H
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
int output();
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // WRAP_CPP_H
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册