Must you use a macro? An alternative is to put the two functions in separate files and build only the one you want. Or even build both to different executable files and select the one you want when you run it.
If you are not familiar with building such things, you need a Makefile (a file with the name Makefile). For example, to build two applications 'prof' and 'stud' from a common file app.c and your two implementations in prof.c and stud.c :-
all: stud prof
CFLAGS = -g -Wall
CC = gcc
prof: prof.o app.o
$(CC) $^ -o $@
stud: stud.o app.o
$(CC) $^ -o $@
Note that there is a TAB before each $(CC), not spaces