mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[libj6] Take out explicit type IDs from object_types.inc
This caused errors when there were gaps, so don't allow explicit IDs, and just number types in order.
This commit is contained in:
@@ -16,7 +16,7 @@ static_assert(types_count <= (1 << kobject::koid_type_bits),
|
||||
"kobject::koid_type_bits cannot represent all kobject types");
|
||||
|
||||
static const char *type_names[] = {
|
||||
#define OBJECT_TYPE( name, val ) #name ,
|
||||
#define OBJECT_TYPE( name ) #name ,
|
||||
#include <j6/tables/object_types.inc>
|
||||
#undef OBJECT_TYPE
|
||||
nullptr
|
||||
|
||||
@@ -16,7 +16,7 @@ public:
|
||||
/// Types of kernel objects.
|
||||
enum class type : uint8_t
|
||||
{
|
||||
#define OBJECT_TYPE( name, val ) name = val,
|
||||
#define OBJECT_TYPE( name ) name ,
|
||||
#include <j6/tables/object_types.inc>
|
||||
#undef OBJECT_TYPE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user