c
// Inside _DEVINC_ATOMIC_ATOMIC function
if (index < MAX_INDEX) {
    // Perform the increment
}
