Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TIHan/Ferop

Ferop is a .NET library that allows inline C/C++ to compile and run on Windows/Linux/OSX. (beta, not production ready)
https://github.com/TIHan/Ferop

Last synced: 3 months ago
JSON representation

Ferop is a .NET library that allows inline C/C++ to compile and run on Windows/Linux/OSX. (beta, not production ready)

Awesome Lists containing this project

README

        

![ferop_icon](https://github.com/TIHan/Ferop/blob/master/ferop_icon.png?raw=true)
=

Ferop is not maintained but still exists as a reference to the idea of having inline C/C++ code inside of .NET

Ferop is a .NET library that allows inline C/C++ to compile and run on Windows/Linux/OSX.

iOS and Android support is planned.

Quick Start
-

F#

```fsharp
open Ferop

[]
[""")>]
module Native =
[]
let printHelloWorld() : unit = C """printf("Hello World!\n");"""

[]
let main args =
Native.printHelloWorld()
0
```

C#

```csharp
namespace Native
{
using Ferop;

[Ferop]
[Header("#include ")]
class Native
{
[Import]
public static void PrintHelloWorld()
{
Ferop.C (@"printf(""Hello World!\n"");");
}

static void Main(string[] args)
{
PrintHelloWorld();
System.Console.Read();
}
}
}
```

VB

```vb
Imports Ferop

")>
Module Native


Public Sub PrintHelloWorld()
Call Ferop.C("printf(""Hello World!\n"");")
End Sub

Sub Main()
Call PrintHelloWorld()
Console.ReadLine()
End Sub

End Module
```