mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
feat: add FuncPtr32/FuncPtr64 node kinds, darken menu hover, remove refresh log
- Add FuncPtr32/FuncPtr64 types with display, parsing, validation, code generation - Add quick-convert context menu actions between pointer and funcptr types - Darken QMenu hover highlight from theme.border to theme.hover for better contrast - Remove noisy [Refresh] reading debug log from console output
This commit is contained in:
@@ -44,6 +44,8 @@ static QString cTypeName(NodeKind kind) {
|
||||
case NodeKind::Bool: return QStringLiteral("bool");
|
||||
case NodeKind::Pointer32: return QStringLiteral("uint32_t");
|
||||
case NodeKind::Pointer64: return QStringLiteral("uint64_t");
|
||||
case NodeKind::FuncPtr32: return QStringLiteral("uint32_t");
|
||||
case NodeKind::FuncPtr64: return QStringLiteral("uint64_t");
|
||||
case NodeKind::Vec2: return QStringLiteral("float");
|
||||
case NodeKind::Vec3: return QStringLiteral("float");
|
||||
case NodeKind::Vec4: return QStringLiteral("float");
|
||||
@@ -143,6 +145,10 @@ static QString emitField(GenContext& ctx, const Node& node) {
|
||||
}
|
||||
return QStringLiteral(" void* %1;").arg(name) + oc;
|
||||
}
|
||||
case NodeKind::FuncPtr32:
|
||||
return QStringLiteral(" void (*%1)();").arg(name) + oc;
|
||||
case NodeKind::FuncPtr64:
|
||||
return QStringLiteral(" void (*%1)();").arg(name) + oc;
|
||||
default:
|
||||
return QStringLiteral(" %1 %2;").arg(ctx.cType(node.kind), name) + oc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user