Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mapping for std::chrono #766

Merged
merged 11 commits into from
Aug 4, 2024
4 changes: 4 additions & 0 deletions src/main/java/org/bytedeco/javacpp/chrono/Chrono.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.bytedeco.javacpp.chrono;

public class Chrono {
}
10 changes: 10 additions & 0 deletions src/main/java/org/bytedeco/javacpp/presets/chrono.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.bytedeco.javacpp.presets;

import org.bytedeco.javacpp.annotation.Properties;

@Properties(
target = "org.bytedeco.javacpp.chrono",
global = "org.bytedeco.javacpp.chrono.Chrono"
)
public class chrono {
}
4 changes: 2 additions & 2 deletions src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -3539,13 +3539,13 @@ boolean group(Context context, DeclarationList declList) throws ParserException
Context ctx = new Context(context);
Token[] prefixes = {Token.CLASS, Token.INTERFACE, Token.__INTERFACE, Token.STRUCT, Token.UNION};
for (Token token = tokens.get(); !token.match(Token.EOF); token = tokens.next()) {
if (token.match(prefixes)) {
if (token.match((Object[]) prefixes)) {
saudet marked this conversation as resolved.
Show resolved Hide resolved
foundGroup = true;
ctx.inaccessible = token.match(Token.CLASS);
break;
} else if (token.match(Token.FRIEND)) {
friend = true;
if (!tokens.get(1).match(prefixes)) {
if (!tokens.get(1).match((Object[]) prefixes)) {
// assume group name follows
foundGroup = true;
break;
Expand Down
Loading