File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ versionfname = include/SDL3/SDL_version.h
9
9
versionmajorregex = \A\#define\s+SDL_MAJOR_VERSION\s+(\d+)\Z
10
10
versionminorregex = \A\#define\s+SDL_MINOR_VERSION\s+(\d+)\Z
11
11
versionmicroregex = \A\#define\s+SDL_MICRO_VERSION\s+(\d+)\Z
12
+ apipropertyregex = \A\s*\#\s*define\s+SDL_PROP_
12
13
selectheaderregex = \ASDL.*?\.h\Z
13
14
projecturl = https://libsdl.org/
14
15
wikiurl = https://wiki.libsdl.org
Original file line number Diff line number Diff line change 32
32
my $incsubdir = ' include' ;
33
33
my $readmesubdir = undef ;
34
34
my $apiprefixregex = undef ;
35
+ my $apipropertyregex = undef ;
35
36
my $versionfname = ' include/SDL_version.h' ;
36
37
my $versionmajorregex = ' \A\#define\s+SDL_MAJOR_VERSION\s+(\d+)\Z' ;
37
38
my $versionminorregex = ' \A\#define\s+SDL_MINOR_VERSION\s+(\d+)\Z' ;
110
111
$srcpath = $val , next if $key eq ' srcpath' ;
111
112
$wikipath = $val , next if $key eq ' wikipath' ;
112
113
$apiprefixregex = $val , next if $key eq ' apiprefixregex' ;
114
+ $apipropertyregex = $val , next if $key eq ' apipropertyregex' ;
113
115
$projectfullname = $val , next if $key eq ' projectfullname' ;
114
116
$projectshortname = $val , next if $key eq ' projectshortname' ;
115
117
$wikisubdir = $val , next if $key eq ' wikisubdir' ;
@@ -1366,7 +1368,7 @@ sub generate_quickref {
1366
1368
# update strings now that we know everything pending is to be applied to this declaration. Add pending blank lines and the new text.
1367
1369
1368
1370
# At Sam's request, don't list property defines with functions. (See #9440)
1369
- my $is_property = /\A\ s *\ # \s*define\s+SDL_PROP_/ ;
1371
+ my $is_property = ( defined $apipropertyregex ) ? / $apipropertyregex / : 0 ;
1370
1372
if (!$is_property ) {
1371
1373
if ($blank_lines > 0) {
1372
1374
while ($blank_lines > 0) {
You can’t perform that action at this time.
0 commit comments