Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Runtime.InteropServices;
using static LowSharp;
namespace LLVM
{
#region Enums
//LLVMVerifierFailureAction
public enum LLVMVerifierFailureAction : Int32
{
@raizam
raizam / PatriciaTrie.cs
Created April 18, 2019 13:55
Single file PatriciaTrie extracted from trienet (https://github.com/gmamaladze/trienet/tree/master/TrieNet).
// This code is distributed under MIT license. Copyright (c) 2013 George Mamaladze
// See license.txt or http://opensource.org/licenses/mit-license.php
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System;
using System.Runtime.InteropServices;
using SharpC;
namespace FlecsSharp
{
#region Enums
//EcsSystemKind
public enum EcsSystemKind : Int32
{
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace SharpC
{
partial struct CharPtr
{
public CharPtr(IntPtr ptr) => this.Ptr = ptr;
IntPtr Ptr { get; }
using System;
using System.Runtime.InteropServices;
using SharpC;
namespace BakeSharp
{
#region Enums
//kind
public enum Kind : Int32
{
module Glfw;
@nogc:
nothrow:
//Enums
enum MouseButton
{
Btn1 = 0,//0
Btn2 = 1,//1
Btn3 = 2,//2
module FlecsSharp;
@nogc:
nothrow:
//Enums
// ecs_type_filter_kind_t: https://github.com/SanderMertens/flecs/blob/612c28635497c1749f8f3e84fa24eabfea58e05a/include/flecs.h#L161
enum TypeFilterKind : int
{
Default = 0,
All = 1,

15/12

total_slots: 1048576
max_distance 3
allocated 32.00 Mb
occupation_ratio 0.95
add_1M: 88.94 ms
iterate_1M: 0.00s
/*
* Copyright 2010-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
*/
#ifndef NORMALIZE_H
#define NORMALIZE_H
#define PP_TO_STRING(v) #v
a->b