Skip to content
/ Ferop Public

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

License

Notifications You must be signed in to change notification settings

TIHan/Ferop

Repository files navigation

ferop_icon

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#

open Ferop

[<Ferop>]
[<Header("""#include <stdio.h>""")>]
module Native =
    [<Import; MI(MIO.NoInlining)>]
    let printHelloWorld() : unit = C """printf("Hello World!\n");"""

[<EntryPoint>]
let main args =
    Native.printHelloWorld()
    0

C#

namespace Native
{
    using Ferop;

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

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

VB

Imports Ferop

<Ferop>
<Header("#include <stdio.h>")>
Module Native

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

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

End Module

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy