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 lldb | |
def is_slice_type(t, internal_dict): | |
return t.name.startswith("[]") or t.name.startswith("[dynamic]") | |
class SliceChildProvider: | |
def __init__(self, val, dict): | |
self.val = val | |
def num_children(self): |
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
package main | |
import "core:fmt" | |
import "core:io" | |
import "core:odin/ast" | |
import "core:odin/parser" | |
import "core:os" | |
import "core:path/filepath" | |
import "core:slice" | |
import "core:strings" |
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
package main | |
import "core:runtime" | |
main :: proc() { | |
context.assertion_failure_proc = print_call_frames | |
foo() | |
} |
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
package main | |
import "core:log" | |
import "core:mem" | |
import "core:runtime" | |
import "vendor:glfw" | |
import gl "vendor:OpenGL" | |
main :: proc() { |
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
#!/usr/bin/env sh | |
glslc shader.vert -o vert.spv | |
glslc shader.frag -o frag.spv |
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
/* | |
vim: syntax=armasm nospell | |
Some of the following assembly code is taken from LuaCoco by Mike Pall. | |
See https://coco.luajit.org/index.html | |
MIT license | |
Copyright (C) 2004-2016 Mike Pall. All rights reserved. |
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
package lsp | |
import "core:bufio" | |
import "core:encoding/json" | |
import "core:io" | |
import "core:log" | |
Null :: distinct struct{} | |
Initialize_Error :: Response_Error(Initialize_Error_Data) |
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
package generated_tests | |
import test_gen "core:testing/generator" | |
import "core:os" | |
import "core:testing" | |
import test_core_crypto "../../../tests/core/crypto" | |
main :: proc() { | |
tests := []testing.Internal_Test{ |
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
logger: log.Logger | |
rl_log_buf: []byte | |
rl_log :: proc "c" (logLevel: rl.TraceLogLevel, text: cstring, args: libc.va_list) { | |
context = runtime.default_context() | |
context.logger = logger | |
level: log.Level | |
switch logLevel { | |
case .TRACE, .DEBUG: level = .Debug | |
case .ALL, .NONE, .INFO: level = .Info |
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
@echo off | |
setlocal enabledelayedexpansion | |
set ORCA_DIR=..\..\third-party\orca | |
set STDLIB_DIR=%ORCA_DIR%\src\libc-shim | |
:: common flags to build wasm modules | |
set wasmFlags=--target=wasm32^ | |
--no-standard-libraries ^ | |
-mbulk-memory ^ |
NewerOlder