Project

General

Profile

Actions

Feature #103

closed

Replace convert_string() asserts with nonnull attributes

Added by Marko Lindqvist 12 months ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
01/01/2024
Due date:
% Done:

0%

Estimated time:

Description

convert_string() currently has asserts to check number of parameters not being NULL. Replace that with use of nonnull attribute.

1) Compile time check instead of runtime
2) Static analyzers know that function should not be passed NULL parameters, so can better check calling side
3) Fixes compiler warnings related to the early exit code with asserts


Files

Actions #1

Updated by Marko Lindqvist 12 months ago

Actions #2

Updated by Marko Lindqvist 12 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF