diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-09-05 13:16:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-05 13:16:21 -0700 |
| commit | e59a1b39317c10815baaed3b70c4a6580dbe1e63 (patch) | |
| tree | dc908e481eb5d73ceb7dc9d1f5da1e40d5b0e7e8 /source/slang/modifier-defs.h | |
| parent | 620734080f825cb205b887fa1d6203e35dd60663 (diff) | |
| parent | 8b91fb8e2db782c73541c83042209b4263402902 (diff) | |
Merge pull request #175 from tfoleyNV/implicit-conversion
Move implicit conversion operations to stdlib
Diffstat (limited to 'source/slang/modifier-defs.h')
| -rw-r--r-- | source/slang/modifier-defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/modifier-defs.h b/source/slang/modifier-defs.h index ddfb9c410..597d59d9a 100644 --- a/source/slang/modifier-defs.h +++ b/source/slang/modifier-defs.h @@ -315,3 +315,11 @@ END_SYNTAX_CLASS() SYNTAX_CLASS(TupleVarModifier, Modifier) FIELD_INIT(TupleFieldModifier*, tupleField, nullptr) END_SYNTAX_CLASS() + +// A modifier to indicate that a constructor/initializer can be used +// to perform implicit type conversion, and to specify the cost of +// the conversion, if applied. +SYNTAX_CLASS(ImplicitConversionModifier, Modifier) + // The conversion cost, used to rank conversions + FIELD(ConversionCost, cost) +END_SYNTAX_CLASS() |
