This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace v8interop { namespace noise | |
{ | |
// General node/v8 wrapper of a noise function. | |
template <typename In, typename Out> | |
class Noise : public node::ObjectWrap | |
{ | |
public: | |
::noise::Noise<In, Out> noise; | |
Noise() = delete; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef WORLEYNOISE_H | |
#define WORLEYNOISE_H | |
#include <dynarray> | |
#include <vector> | |
#include <noise/noise.h> | |
#include <util/spatialcache.h> | |
#include <util/fastmath.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: Haxe | |
" Maintainer: Luca Deltodesco <[email protected]> | |
" Last Change: 2013 August 26 | |
if exists("b:current_syntax") | |
finish | |
endif | |
command! -nargs=+ HaxeHiLink hi def link <args> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import haxe.macro.Expr; | |
import haxe.macro.ExprTools; | |
import haxe.macro.Context; | |
@:autoBuild(ShortLambdas.run()) interface Lambdas {} | |
class ShortLambdas { | |
public static function run() { | |
var fields = Context.getBuildFields(); | |
// perform AST transforms. | |
// trace fields for now to check it's running |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
@:build(goodies.BitFields.run(ABC)) abstract ABC(Int) { | |
static var A = 1; | |
static var B = 2; | |
static var C = 4; | |
} | |
class Main { | |
static function main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: include/hx/CFFILoader.h | |
=================================================================== | |
--- include/hx/CFFILoader.h (revision 744) | |
+++ include/hx/CFFILoader.h (working copy) | |
@@ -101,7 +101,7 @@ | |
if (!sNekoDllHandle) | |
sNekoDllHandle = dlopen("libneko." NEKO_EXT ".0", RTLD_NOW); | |
#endif | |
- | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package imgui; | |
#if macro | |
import haxe.macro.Context; | |
class ImColourBuild { | |
public static function run() { | |
var fields = Context.getBuildFields(); | |
fields.push({ | |
pos: Context.currentPos(), | |
name: "_colour", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test/Test.hx: | |
------------- | |
package test; | |
class Test { | |
public static function test() { | |
throw "Test"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract Fixed16(Int) { | |
inline function new(x:Int) this = x; | |
inline function raw() return this; | |
inline static function RAW(x:Int) return new Fixed16(x); | |
public static var MAX_VALUE:Fixed16 = RAW(0x7fffffff); | |
public static var MIN_VALUE:Fixed16 = RAW(1); | |
@:from public static inline function fromf(x:Float) { | |
#if debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
#if macro | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
#end | |
@:autoBuild(LongParamsImpl.run()) interface LongParams {} | |
class LongParamsImpl { |