Update manuals and other additions

This commit is contained in:
2026-06-09 12:45:33 -05:00
parent 051b12f28d
commit 78fb8d6d7c
101 changed files with 1629 additions and 401 deletions
+4 -4
View File
@@ -14,8 +14,8 @@ INTEROP = ROOT / "examples" / "interop"
def test_protel_calls_swift_emits_external_swift_greet():
source = (INTEROP / "protel_calls_swift.protel").read_text(encoding="utf-8")
cpp = transpile_to_cpp(parse_protel(source), source_name="protel_calls_swift.protel")
source = (INTEROP / "protel_calls_swift.P").read_text(encoding="utf-8")
cpp = transpile_to_cpp(parse_protel(source), source_name="protel_calls_swift.P")
assert 'extern "C"' in cpp
assert "void swift_greet(const char* name, int16_t value)" in cpp
assert "swift_greet(" in cpp
@@ -23,8 +23,8 @@ def test_protel_calls_swift_emits_external_swift_greet():
def test_protel_for_swift_exports_c_linkage():
source = (INTEROP / "protel_for_swift.protel").read_text(encoding="utf-8")
cpp = transpile_to_cpp(parse_protel(source), source_name="protel_for_swift.protel")
source = (INTEROP / "protel_for_swift.P").read_text(encoding="utf-8")
cpp = transpile_to_cpp(parse_protel(source), source_name="protel_for_swift.P")
assert "/* EXPORT protel_add" in cpp
assert "int16_t protel_add(int16_t a, int16_t b)" in cpp
assert "return (a + b)" in cpp