Lines Matching defs:id
249 // avoid 0, as it could be confused for a trap without any specific id.
254 uint16_t id;
256 // We have seen this pair before. Return the same id that we assigned
258 id = iter->second;
260 // This is a new pair. Remember it and assign a new id.
262 trap_array_size_ >= std::numeric_limits<typeof(id)>::max()) {
267 id = trap_array_size_ + 1;
308 trap_ids_[key] = id;
309 trap_array_[trap_array_size_] = ErrorCode(fnc, aux, safe, id);
313 return ErrorCode(fnc, aux, safe, id);
344 ErrorCode Trap::ErrorCodeFromTrapId(uint16_t id) {
345 if (global_trap_ && id > 0 && id <= global_trap_->trap_array_size_) {
346 return global_trap_->trap_array_[id - 1];