This file contains 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
#pragma once | |
#include <stdint.h> | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/// C-only API: |
This file contains 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
// Adjust paths in L2 and L46-47 | |
#include "../../.wi/WickedEngine/WickedEngine.h" | |
class Render : public wi::RenderPath3D { | |
public: | |
}; | |
class App : public wi::Application { |
This file contains 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
#include "../../.wi/WickedEngine/WickedEngine.h" | |
// to repro, change path above AND also L112-113 | |
class Game : public wi::RenderPath3D { | |
public: | |
Game() = default; | |
~Game() = default; | |
void Load() override; |
This file contains 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
reference to `lua_pushvalue' | |
/usr/bin/ld: wiAudio_BindLua.cpp:(.text._ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State[_ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State]+0x27): undefined reference to `lua_rawget' | |
/usr/bin/ld: wiAudio_BindLua.cpp:(.text._ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State[_ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State]+0x34): undefined reference to `lua_isnumber' | |
/usr/bin/ld: wiAudio_BindLua.cpp:(.text._ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State[_ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State]+0x5b): undefined reference to `lua_tonumberx' | |
/usr/bin/ld: wiAudio_BindLua.cpp:(.text._ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State[_ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State]+0x6c): undefined reference to `lua_touserdata' | |
/usr/bin/ld: wiAudio_BindLua.cpp:(.text._ZN4LunaIN2wi3lua13Sound_BindLuaEE15property_getterEP9lua_State[_ZN4LunaIN2wi3lua13Sound_BindLuaE |
This file contains 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
grammar Atmo; | |
// $antlr-format alignTrailingComments true, columnLimit 180, maxEmptyLinesToKeep 1, reflowComments false, useTab false | |
// $antlr-format allowShortRulesOnASingleLine true, allowShortBlocksOnASingleLine true, minEmptyLines 0, alignSemicolons ownLine | |
// $antlr-format alignColons trailing, singleLineOverrulesHangingColon true, alignLexerCommands true, alignLabels true, alignTrailers true | |
comment : LINE_COMMENT | COMMENT; | |
expr: | |
'(' expr ')' # ParensExpr |
This file contains 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 :std/sugar | |
:std/text/json) | |
(defsyntax defcls | |
(syntax-rules () | |
((defclas $typename ($fields ...) $ctor-name) | |
(begin | |
(defclass $type-name ($fields ...) constructor: $ctor-name) | |
(defmethod {$ctor-name $type-name} |
This file contains 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
;;; -*- Gerbil -*- | |
(import :std/error | |
:std/sugar | |
:std/io | |
(only-in :std/net/httpd/handler read-request-headers read-request-body)) | |
(export main) | |
(def payload1 "Content-Length: 128\r\n\r\n{\"jsonrpc\":\"2.0\",\"id\":\"g0\",\"result\":[{\"uri\":\"file:///home/_/c/l\",\"name\":\"l\"},{\"uri\":\"file:///home/_/g/gerbil\",\"name\":\"gerbil\"}]}") |
This file contains 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 (only-in :gerbil/gambit pretty-print) | |
:std/sugar | |
:std/text/json) | |
(defsyntax deflsp | |
(syntax-rules () | |
((deflsp $typename ($fields ...) $ctor-name) | |
(begin | |
(defclass ($type-name JSON) ($fields ...) constructor: $ctor-name) |
This file contains 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
;; repro: just `gerbil new` something and paste this into its main.ss | |
(import :std/io | |
:std/sugar | |
:std/format | |
:std/text/json | |
:std/net/json-rpc | |
(only-in :std/net/httpd/handler read-request-headers read-request-body)) | |
(export main) |
This file contains 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
;; repro: just `gerbil new` something and paste this into its main.ss | |
(import :std/io | |
:std/sugar | |
:std/text/json | |
:std/net/json-rpc | |
(only-in :std/net/httpd/handler read-request-headers read-request-body)) | |
(export main) | |
(include "../manifest.ss") |
NewerOlder