target/cmake.c
static void cmake_emit_read_value(
      char const* indent,
      char const* variable,
      Value const* value
    ) {

  if (REG == value->type) {
    emit_line("%sget_property(\"%s\" GLOBAL PROPERTY \"%s_reg_%s\")", indent, variable, cmake_prefix(), reg_names[value->reg]);

  } else if (IMM == value->type) {
    emit_line("%sset(\"%s\" \"%d\")", indent, variable, value->imm);

  } else {
    error("Invalid value");
  }
}
/* Loads `value' into a local variable named `variable'
 *
 * @param indent Indent to use
 * @param variable Local CMake variable name
 * @param value Registry or immediate value
 *
 * @see value_str
 */
Loads `value' into a local variable named `variable'
@param indent Indent to use
@param variable Local CMake variable name
@param value Registry or immediate value


Loads ` value ' into a local variable named ` variable ' @param indent Indent to use @param variable Local CMake variable name @param value Registry or immediate value
static void cmake_emit_read_value(
      char const* indent,
      char const* variable,
      Value const* value
    ) {
  if (REG == value->type) {
    emit_line("%sget_property(\"%s\" GLOBAL PROPERTY \"%s_reg_%s\")", indent, variable, cmake_prefix(), reg_names[value->reg]);
  } else if (IMM == value->type) {
    emit_line("%sset(\"%s\" \"%d\")", indent, variable, value->imm);
  } else {
    error("Invalid value");
  }
}
static void cmake_emit_read_value ( char const * indent , char const * variable , Value const * value ) { if ( REG == value -> type ) { emit_line ( " \" \" \" \" " , indent , variable , cmake_prefix ( ) , reg_names [ value -> reg ] ) ; } else if ( IMM == value -> type ) { emit_line ( " \" \" \" \" " , indent , variable , value -> imm ) ; } else { error ( " " ) ; } }
Loads `value' into a local variable named `variable'
 @param indent Indent to use
 @param variable Local CMake variable name
 @param value Registry or immediate value
Loads ` value ' into a local variable named ` variable ' @param indent Indent to use @param variable Local CMake variable name @param value Registry or immediate value