Skip to content

Commit

Permalink
Add check in ts.h that language is C++, version 17 or later. (#10796)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkaras authored Nov 27, 2023
1 parent 551aa61 commit 820d0f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ts/ts.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

#pragma once

#if !defined(__cplusplus) || __cplusplus < 201703L
#error "Must compile ATS plugin code with C++ version 17 or later."
#endif

#include <type_traits>

#include <ts/apidefs.h>
Expand Down

0 comments on commit 820d0f9

Please sign in to comment.