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
/* | |
A mmap file wrapper | |
Copyright 2015 Smx | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> |
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
/* | |
Copyright (C) 2015 Smx | |
*/ | |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <ctype.h> |
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
[CCode(cheader_filename = "struct.h")] | |
namespace CGlm { | |
[SimpleType, CCode(cname = "mat4", cprefix = "glm_mat4_", default_value = "GLM_MAT4_IDENTITY_INIT")] | |
public struct Matrix4 { | |
[CCode(cname = "GLM_MAT4_IDENTITY_INIT")] | |
public const Matrix4 IDENTITY; | |
public Matrix4(){} | |
public float det(); |
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
namespace Electron | |
{ | |
public class App | |
{ | |
private const string ASSEMBLIES_RELPATH = "generated/assemblies/"; | |
private static readonly string AdapterAssembly = path.resolve(ASSEMBLIES_RELPATH + "/Electron.Adapter.dll"); | |
private const string AdapterType = "Foo.Adapter.ElectronAdapter"; | |
private static void OnNotify(object data, EdgeCallback cb) | |
{ |
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 <iostream> | |
#include <sstream> | |
#include <string> | |
#include <cstdint> | |
#include <cctype> | |
static int round_up_div(int val, int div){ | |
return (val + div - 1) / div; | |
} |
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> | |
#include <type_traits> | |
// use this for the [] operator (since we can't overload .) to work on globals without using the -> pointer operator | |
// example: BYVAL(gMyVar).foo | |
#define BYVAL(ptr) (*(&(ptr))) | |
template <typename T> | |
class Pointer |
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
__DistroRid: linux-armel | |
__RuntimeId: linux-armel | |
Downloading 'https://dot.net/v1/dotnet-install.sh' | |
Trying to run 'curl https://dot.net/v1/dotnet-install.sh -sSL --retry 10 --create-dirs -o /mnt/ExtData/cross/dotnet/runtime/.dotnet/dotnet-install.sh' for maximum of 5 attempts. | |
Ran 'curl https://dot.net/v1/dotnet-install.sh -sSL --retry 10 --create-dirs -o /mnt/ExtData/cross/dotnet/runtime/.dotnet/dotnet-install.sh' successfully. | |
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where: | |
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. | |
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs. | |
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer. |
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
set(TOOLCHAIN_DIR "/mnt/ExtData/cross/buildroot/output/host") | |
set(TOOLCHAIN "arm-buildroot-linux-uclibcgnueabi") | |
set(CMAKE_SYSTEM_NAME Linux) | |
set(CMAKE_SYSTEM_VERSION 1) | |
set(CMAKE_SYSTEM_PROCESSOR armv7l) | |
set(_COMMON_COMPILE_FLAGS "-march=armv7-a+nofp+nosimd -mfloat-abi=soft") | |
set(_COMMON_LINK_FLAGS "-Wl,--dynamic-linker=/lib/ld-uClibc.so.0") |
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
/** | |
* Custom ldd that also dlopens | |
* supporting LD_LIBRARY_PATH, basically acts as "dlopen() with dependencies" | |
* without modifying the current process LD_LIBRARY_PATH | |
* | |
* Stefano Moioli <smxdev4@gmail.com>, 2021 | |
**/ | |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> |
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
/** | |
* Copyright (C) 2021 Stefano Moioli <smxdev4@gmail.com> | |
* This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. | |
* | |
* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: | |
* | |
* 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. | |
* 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. | |
* 3. This notice may not be removed or altered from any source distribution. | |
**/ |
OlderNewer