git » sdk » commit 8a12016

Expose Identicon to C

author Stephen Paul Weber
2025-06-24 18:08:53 UTC
committer Stephen Paul Weber
2025-06-24 18:08:53 UTC
parent dc464a5a9073d1f36f49a826662c711664165c70

Expose Identicon to C

snikket/Identicon.hx +8 -0

diff --git a/snikket/Identicon.hx b/snikket/Identicon.hx
index b8d0d9e..95e466b 100644
--- a/snikket/Identicon.hx
+++ b/snikket/Identicon.hx
@@ -5,7 +5,15 @@ import haxe.crypto.Sha1;
 import haxe.io.Bytes;
 import haxe.io.BytesInput;
 
+#if cpp
+import HaxeCBridge;
+#end
+
 @:expose
+#if cpp
+@:build(HaxeCBridge.expose())
+@:build(HaxeSwiftBridge.expose())
+#end
 class Identicon {
 	public static function svg(source: String) {
 		final sha = Sha1.make(Bytes.ofString(source));