MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / validateFrame

Method validateFrame

tools/ipc_codegen/ipc_codegen.cpp:511–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509 }
510
511 void validateFrame(const File& file, const FrameDecl& frame, const char* label) {
512 for (const auto& field : frame.fields) {
513 if (!field.payload && !findStruct(file, field.type) && !isIntegral(field.type))
514 fail(field.line, std::string("unknown ") + label + " frame type '" + field.type + "'");
515 }
516 }
517
518 static bool isIntegral(std::string_view type) {
519 static const std::unordered_set<std::string_view> types = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected