From 12c4d5ff6fe1e9dc3f9c8b226a92e2df7cac3f69 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 16 Sep 2021 16:17:57 +0200 Subject: [PATCH] Edit on future work --- content/posts/git-powered-runtime-code-injection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/posts/git-powered-runtime-code-injection.md b/content/posts/git-powered-runtime-code-injection.md index 48fdf3d..a573477 100644 --- a/content/posts/git-powered-runtime-code-injection.md +++ b/content/posts/git-powered-runtime-code-injection.md @@ -327,7 +327,7 @@ I pushed a [GitHub repo](https://github.com/Phireh/runtime-git) with the complet Libgit is a bit verbose and there is quite a bit of error handling code, so I just posted this as soon as I had a minimal runnable example. There's a ton of sugar you can add to this cake, though: -- Add C++ support. C++ implemented overloading via name mangling, so we'd need to ask for the mangled name in our `dlsym` calls. +- ~Add C++ support. C++ implemented overloading via name mangling, so we'd need to ask for the mangled name in our `dlsym` calls.~ Edit: C++'s name mangling is platform-specific, so it's better to simply use `extern "C"` to avoid dealing with it. We're only loading a few non-overloaded symbols, anyhow. - Auto-detect new commits _while the game is running_. - Support for git submodules and more compilation units for different subsystems could be a boon for projects with big compile times. - Dealing with git delta representations of tree objects. Maybe test it with git lfs too.