PN532 NFC RFID Write Tag Sketch error

Hi guys,

I'm playing with the WriteTag example sketch for this device (library is also in the link)
https://dangerousthings.com/wp-content/uploads/2013/12/PN532_-Manual_V3.pdf

I tried bringing the entire sketch to its own void function and simply looping that function but I'm getting an error message.

#if 0
#include <SPI.h>
#include <PN532_SPI.h>
#include <PN532.h>
#include <NfcAdapter.h>

PN532_SPI pn532spi(SPI, 10);
NfcAdapter nfc = NfcAdapter(pn532spi);
#else

#include <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
#include <NfcAdapter.h>

PN532_I2C pn532_i2c(Wire);
NfcAdapter nfc = NfcAdapter(pn532_i2c);
#endif

#include <SoftwareSerial.h>


int i = 0;
int incomingByte;
    int convertedIncoming;
    int bar[20];

void setup() {
      Serial.begin(9600);
      Serial.println("Barcode Tag Associator");
      nfc.begin();
}

void loop() {
 
  process();
    
}


void process(){
  Serial.println("\nPlace a formatted Mifare Classic NFC tag on the reader.");
    if (nfc.tagPresent()) {
        NdefMessage message = NdefMessage();
        message.addUriRecord("http://arduino.cc");

        bool success = nfc.write(message);
        if (success) {
          Serial.println("Success. Try reading this tag with your phone.");        
        } else {
          Serial.println("Write failed.");
        }
    }
    delay(5000);
}
WriteTag.ino: In function 'void loop()':
WriteTag:41: error: 'process' was not declared in this scope
'process' was not declared in this scope

NEVER start your sketch with a #if 0 statement. The IDE manipulates your .ino file to create a .cpp file to be compiled. It adds function prototypes and other things. WHERE it adds them can be a problem if you use conditional compilation blocks.

byte me;

should be the first line of code in your sketch if you REALLY think conditional compilation is needed.

Sorry Paul.
It was an example sketch.
All of my efforts here are based on this thread:
http://forum.arduino.cc/index.php?topic=329837.msg2279358#msg2279358
Could you suggest where I might find help, even if I have to pay for it regarding this issue with the SM130?

Mods, feel free to close this thread.
I paid a freelancer to fix it.