Exemplo n.º 1
0
        /// <inheritdoc />
        public override void VisitConstField(CppConstField cppConstField)
        {
            string cppTypeFullName    = CppTypeMapper.GetCppFullTypeName(cppConstField.FieldInfo.FieldType);
            string constValueAsString = cppConstField.ConstValue.ToString();

            WriteLine($"static const {cppTypeFullName} {cppConstField.FieldInfo.Name} = {constValueAsString};");
            WriteLine();
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public override void VisitConstField(CppConstField cppConstField)
 {
     acceptedCodeWriters.ForEach(r => r.VisitConstField(cppConstField));
 }
Exemplo n.º 3
0
 /// <inheritdoc />
 public override void VisitConstField(CppConstField cppConstField)
 {
     // By default, ignore the const fields.
     //
 }
Exemplo n.º 4
0
 /// <summary>
 /// Write a struct const field definition.
 /// </summary>
 /// <param name="cppConstField"></param>
 public abstract void VisitConstField(CppConstField cppConstField);
 /// <inheritdoc />
 public override void VisitConstField(CppConstField cppConstField)
 {
     // Nothing.
     //
 }
Exemplo n.º 6
0
 /// <inheritdoc />
 public sealed override void VisitConstField(CppConstField cppConstField)
 {
     // Do not generate information about structure fields.
     //
 }