Created
February 21, 2010 14:43
-
-
Save yaotti/310344 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun c++-debug-print() | |
(interactive) | |
(let* ((var-str (read-from-minibuffer "variables (space separated): ")) | |
(vars (split-string var-str)) | |
(dp "cout")) | |
(dolist (v vars) | |
(setq dp (concat dp " << " v " << \", \""))) | |
(insert (concat dp " << endl;")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment