quakeforge/libs/video/renderer/vulkan/vkgen/vkbool.r
Bill Currie 5a928581ab [vkgen] Fix parsing of actual bool types
Switching to native ruamoko bool for vkgen resulted in bool getting
incorrectly parsed as a string (which mean getting the string's address
written to the value). Fixes the randomly enabled debug pipelines (and
probably a few randomly disabled normal pipelines, though less likely as
they're usually implicitly initialized). The one bit of actual legit UB
(ie, that which wasn't immediately mitigated one way or another) found
by ubsan, and it was a data error.
2024-09-24 11:09:10 +09:00

33 lines
316 B
R

#include <string.h>
#include "vkbool.h"
#include "vkgen.h"
@implementation Bool
-(string) name
{
return "bool";
}
-(string) cexprType
{
return "cexpr_bool";
}
-(string) parseType
{
return "QFString";
}
-(string) parseFunc
{
return "parse_enum";
}
-(string) parseData
{
return "&cexpr_bool_enum";
}
@end