-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Group headers in once for class registration (#3247)
- Create ctor_f and dtor_f - Stop installing unused hoc_membf.h - Move hoc_membf into classreg.h
- Loading branch information
Nicolas Cornu
authored
Nov 25, 2024
1 parent
885617d
commit e08dc8d
Showing
9 changed files
with
38 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
#pragma once | ||
|
||
#include <hocdec.h> | ||
#include <hoc_membf.h> | ||
|
||
extern void class2oc(const char*, | ||
void* (*cons)(Object*), | ||
void (*destruct)(void*), | ||
Member_func*, | ||
Member_ret_obj_func*, | ||
Member_ret_str_func*); | ||
struct Object; | ||
|
||
using ctor_f = void*(Object*); | ||
using dtor_f = void(void*); | ||
|
||
struct Member_func { | ||
const char* name; | ||
double (*member)(void*); | ||
}; | ||
|
||
struct Member_ret_obj_func { | ||
const char* name; | ||
struct Object** (*member)(void*); | ||
}; | ||
|
||
struct Member_ret_str_func { | ||
const char* name; | ||
const char** (*member)(void*); | ||
}; | ||
void class2oc(const char*, | ||
ctor_f* cons, | ||
dtor_f* destruct, | ||
Member_func*, | ||
Member_ret_obj_func*, | ||
Member_ret_str_func*); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters