View stacktest.cpp
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <assert.h> | |
#include <iostream> | |
#include <type_traits> | |
// Big stack. | |
static size_t stackSize = 1024*1024*10; | |
static thread_local uint8_t* start = nullptr; |
View func.hpp
#pragma once | |
template<typename> | |
class func; | |
// Alternative to std::function for when compile time is | |
// more important than runtime performance. Doesn't pull in | |
// any headers. | |
template<typename Result, typename... Arguments> | |
class func<Result (Arguments...)> { |
View nodes.rs
#[derive(Debug)] | |
struct Node { } | |
#[derive(Copy, Clone, Debug)] | |
struct Wire { | |
from: u32, // node index | |
to: u32, // node index | |
} |
View Collector.cpp
// | |
// Collector.cpp | |
// Dev | |
// | |
// Created by Taylor Holliday on 6/14/13. | |
// This file is in the public domain. | |
// | |
#include "gc2/Collector.hpp" |