view third_party/emsdk/bazel/test_external/hello-embind.cc @ 265:056790c4fb0d

add role-aware Epi assistant prompts Add verified June knowledge, guest/member/admin Copilot profiles, profile-isolated session recovery, animated Epi greetings, and a single authoritative runtime config workflow for inference. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 10:50:30 -0700
parents 8d17f6e6e290
children
line wrap: on
line source

#include <emscripten/bind.h>

using namespace emscripten;

class HelloClass {
    public:
    static std::string SayHello(const std::string &name) {
        return "Yo! " + name;
    };
};

EMSCRIPTEN_BINDINGS(Hello) {
    emscripten::class_<HelloClass>("HelloClass")
        .constructor<>()
        .class_function("SayHello", &HelloClass::SayHello);
}