I am using my emacs configuration in macOS and linux.
Exact configuration,always crash on macos but does not in linux. Hence I want to add following line only for macOS but not linux:
(setq debug-on-error t)
Can we apply an if condition like in bash into lisp?
Example approach in bash:
uname_out="$(uname -s)"
case "${uname_out}" in
Darwin*) # UNIX
# (setq debug-on-error t)
;;
*) # LINUX
;;
esac